message(STATUS "from file 2 ")

# set(CMAKE_MODULE_PATH /home/handsomeboy/redis-plus-plus/build/CPackConfig.cmake)

set(CMAKE_PREFIX_PATH "/")
# set(CMAKE_MODULE_PATH "/opt/vcpkg/buildtrees/brpc/x64-linux-rel/")

find_package(CPack REQUIRED)

if(CPACK_FOUND)
    # include_directories(${OPENSSL_INCLUDE_DIR})
    # target_link_libraries(MyProject ${OPENSSL_LIBRARIES})
    message(STATUS "cpack found !")
    message(STATUS ${CPACK_INCLUDE_DIR})

else()
    message(FATAL_ERROR "CPackSource not found.")
endif()
message(STATUS ***${CMAKE_MODULE_PATH}***)